#define _CRT_SECURE_NO_WARNINGS
#include"game.h"

extern char mine[HS][LS];
extern char show[HS][LS];
int minecount = 0;


int main()
{
	srand((unsigned int)time(NULL));

	int choose = 0;
	do
	{
		Menu();
		printf("Start?(1/0)\n");
		scanf("%d", &choose);
		switch (choose)
		{
		case 1:
		{
			Game();
			break;
		}
		case 0:
		{
			printf("Exit.\n");
			break;
		}
		default:
		{
			printf("Typing error.\n");
			break;
		}
		}
	} while (choose != 0);
	return 0;
}